<template>
  <div class="headerinformation">
    <!-- 样式一 -->
    <section class="type0">
      <!-- 信息 -->
      <div class="headerinformationWrap">
        <div class="headerinformationLeft">
          <div>
            <el-avatar size="large" src=""></el-avatar>
          </div>
          <div class="nickname">
            <div class="titpicclass">
              <p style="font-weight: 600; font-size: 16px;">用户昵称</p>
              <img v-if="datas.titlePic" draggable="false" :src="datas.titlePic" alt="">
              <img v-else draggable="false" src="../../../assets/images/titpic.png" alt="">
            </div>
            <div>
              <p style="font-size: 11px; font-weight: 400; color: #9D9D9D;">{{ datas.briefIntroduction }}</p>
            </div>
          </div>
        </div>
        <div class="headerinformationRight">
          <div v-for="(item,index) in datas.iconList" :key="index">
            <img :src="item.iconPic" alt="">
          </div>
        </div>
      </div>
    </section>

    <!-- 删除组件 -->
    <slot name="deles" />
  </div>
</template>

<script>
export default {
  name: 'Headerinformation',
  props: {
    datas: Object
  }
}
</script>

<style scoped lang="scss">
.headerinformation {
  position: relative;
  /* 类型一 */
  .type0 {
    width: 100%;
    background-repeat: round;
    /* 信息 */
    .headerinformationWrap {
      width: 100%;
      // height: 60px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      .headerinformationLeft{
        display: flex;
        align-items: center;
        padding-left: 10px;
        .nickname{
          margin-left: 10px;
          .titpicclass{
            display: flex;
            align-items: center;
            height: 30px;
            line-height: 30px;
            img {
              height: 14px;
            }
            p{
              overflow: hidden;
              white-space: nowrap;
              text-overflow: ellipsis;
            }
          }
        }
      }
      .headerinformationRight{
        display: flex;
        align-items: center;
        margin-right: 30px;
        img{
          // width: 24px;
          height: 24px;
          display: block;
          margin-left: 15px;
        }
      }
    }
    .menban {
      position: absolute;
      left: 0p;
      top: 0px;
      width: 100%;
      z-index: 2;
      height: 100%;
    }
  }
}
</style>
